﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Net.Fan.SmallPig.DataAccess;
using Net.Fan.SmallPig.Common.DBMeta;

public partial class Workflow_CreateDocStep1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (IsPostBack == false)
        {
            DataTable dt = WorkflowDA.GetInUseWorkflows();
            foreach (DataRow item in dt.Rows)
            {
                ListItem li = new ListItem(item[WorkflowMeta.WorkflowName] as string, item[WorkflowMeta.WorkflowID].ToString());
                DropDownListWorkflow.Items.Add(li);
            }

        }
    }
    protected void LinkButtonNextStep_Click(object sender, EventArgs e)
    {
        Response.Redirect(string.Format("CreateDocStep2.aspx?W={0}", DropDownListWorkflow.SelectedValue));
    }
}
